package com.autonavi.yunda.yunji.core.engine.exception;

import lombok.Getter;

/**
 * @author cizhong.wcs
 * @date 2022/9/26 15:14
 */
public class EngineException extends RuntimeException {

    @Getter
    private final String code;
    @Getter
    private final String message;


    public EngineException(String code) {
        super("系统异常");
        this.code = code;
        this.message = "系统异常";
    }

    public EngineException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public EngineException(String code, Throwable e) {
        super(e);
        this.code = code;
        this.message = "系统异常";
    }

    public EngineException(String code, String message, Throwable e) {
        super(message, e);
        this.code = code;
        this.message = message;
    }
}
